package com.ktwlsoft.archivemanage.payload.businessInspectTem;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * 业务检查模板更新
 *
 * @author zhuhe on 2019/11/6 17:40
 * @version 1.0
 */
@ApiModel("业务检查模板更新")
@Getter
@Setter
public class BusinessInspectTemUpdateRequest {

    /**主键*/
    @ApiModelProperty("主键")
    @NotNull(message = "主键id不能为空")
    private Long id;

    /**总分**/
    @ApiModelProperty("总分")
    @NotNull(message = "总分不能为空")
    private BigDecimal mark;

    /**模板名称**/
    @ApiModelProperty("模板名称")
    @NotNull(message = "模板名称不能为空")
    @Size(max = 30, message = "模板名称超长")
    private String name;

    /**模板描述**/
    @ApiModelProperty("模板描述")
    private String describe;

    /**题目数量**/
    @ApiModelProperty("题目数量")
    @NotNull(message = "题目数量不能为空")
    private Integer itemNum;

    /**检查类型:default(默认),self_or_repeat(自查复查)**/
    @ApiModelProperty("检查类型:default(默认),self_or_repeat(自查复查)")
    @NotNull(message = "检查类型不能为空")
    private String inspectType;

    /**指导模板题目**/
    @ApiModelProperty("指导模板题目")
    @Valid
    @NotNull(message = "指导模板题目不能为空")
    private List<InspectTemSubjectUpdateRequest> subjectList;
}